﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;

namespace LEDControllerTools.IO
{
    public static class FileReader
    {
        public static string Read(string path)
        {
            String line;

            //try
            //{
                using (var sr = new StreamReader(path))
                {
                    line = sr.ReadToEnd();
                    Console.WriteLine(line);
                }
            //}
            //catch (Exception e)
            //{
            //    Console.WriteLine("The file could not be read:");
            //    Console.WriteLine(e.Message);
            //}

            return line;
        }

    }
}
